import request from '@/utils/request'
// -------- 贷款机构 --------
let BASE_ADDRESS = '/tool/loanOrganization'

// 分页查询  /tool/loanOrganization/list
export const getLoanOrganizationListApi = (params) =>{
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

// 添加供应机构 /tool/loanOrganization/add
export const getLoanOrganizationAddApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "post",
        data
    })
}

// 编辑供应机构 /tool/loanOrganization/edit
export const getLoanOrganizationEditApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}

// 删除供应机构 /tool/loanOrganization/remove/{id}
export const getLoanOrganizationRemoveApi = (id) =>{
    return request({
        url: `${BASE_ADDRESS}/remove/${id}`,
        method: "delete",
    })
}